
<script>

    var option = {
        url : GURL(handle, 'page?sid='+sid+'&api=/'+api+'/page'),
        colModel : [
            {label: 'uid', name: '_id',key:true,width: 120,editable: true, hidden:false,fixed:true,search:true,searchoptions:{sopt:['eq']}},

            {label: 'guid', name: 'guid',key:true,width: 250,editable: true, hidden:false,fixed:true,search:true,searchoptions:{sopt:['eq']}},

            {label: '角色名', name: 'name',width: 300, editable: true, sortable:false,hidden:false,resize:false,fixed:true,search:true,searchoptions:{sopt:['eq']}},
            {label: '等级', name: 'lv',width: 120, editable: true, sortable:true,hidden:false,resize:false,fixed:true,search:false},
            {label: 'vip', name: 'vip',width: 80, editable: true, sortable:false,hidden:false,resize:false,fixed:true,search:false},
            {label: '累充', name: 'rmb',width: 80, editable: true, sortable:true,hidden:false,resize:false,fixed:false,search:false},
        ]
    }
    $(document).ready(function () {
        var navGrid = { edit: false, add: false, del: false, search: true, refresh: true, view: true }
        cosjs.jqgrid.create(grid_selector,pager_selector,option,navGrid);
    });
</script>
